String (@NotNull Project project, @NotNull ProcessInfo info, @NotNull UserDataHolder dataHolder) { LocalAttachInfo attachInfo = getAttachInfo(project, info.getPid(), info.getCommandLine(), dataHolder.getUserData(ADDRESS_MAP_KEY)); assert attachInfo != null; String res; String executable = info.getExecutableDisplayName(); if ("java".equals(executable)) { if (!StringUtil.isEmpty(attachInfo.myClass)) { res = attachInfo.myClass; } else { res = StringUtil.notNullize(ArrayUtil.getLastElement(info.getCommandLine().split(" "))); // should be class name } } else { res = executable; } return attachInfo.getProcessDisplayText(res); }