void (@NotNull String importString) { int colon = importString.indexOf(':'); if (colon >= 0) { final String qname = importString.substring(0, colon); final String importedName = importString.substring(colon + 1); final boolean isStatic = JavaPsiFacade.getInstance(getProject()).findClass(qname, getResolveScope()) == null; if (isStatic) { myImportCollector.addStaticImport(StringUtil.getPackageName(qname), StringUtil.getShortName(qname), importedName); } else { myImportCollector.addRegularImport(qname, importedName); } } else { final boolean isStatic = JavaPsiFacade.getInstance(getProject()).findClass(importString, getResolveScope()) != null; if (isStatic) { myImportCollector.addStaticStarImport(importString); } else { myImportCollector.addStarImport(importString); } } }