@NotNull public T getTool() { if (myTool == null) { //noinspection unchecked if (ApplicationManager.getApplication().isUnitTestMode()) { instantated = new Throwable(); } myTool = (T) myEP.instantiateTool(); if (!myTool.getShortName().equals(myEP.getShortName())) { LOG.error( "Short name not matched for " + myTool.getClass() + ": getShortName() = " + myTool.getShortName() + "; ep.shortName = " + myEP.getShortName()); } } return myTool; }
@NotNull @Override public String getShortName() { return myEP != null ? myEP.getShortName() : getTool().getShortName(); }