void (Map<PsiClass, Map<PsiMethod, List<String>>> classes, final PsiClass psiClass, final String methodName, final GlobalSearchScope searchScope) { final PsiMethod[] methods = ReadAction.compute(() -> psiClass.findMethodsByName(methodName, true)); calculateDependencies(methods, classes, searchScope, psiClass); Map<PsiMethod, List<String>> psiMethods = classes.get(psiClass); if (psiMethods == null) { psiMethods = new LinkedHashMap<>(); classes.put(psiClass, psiMethods); } for (PsiMethod method : methods) { if (!psiMethods.containsKey(method)) { psiMethods.put(method, Collections.emptyList()); } } }