@NotNull
 public PsiMethod[] findMethodsByName(String name, boolean checkBases) {
   if (checkBases) {
     return PsiClassImplUtil.findMethodsByName(myClass, name, true);
   }
   PsiMethod[] methods =
       CachedValuesManager.getCachedValue(
               myClass,
               new CachedValueProvider<Map<String, PsiMethod[]>>() {
                 @Nullable
                 @Override
                 public Result<Map<String, PsiMethod[]>> compute() {
                   return Result.create(
                       getMethodsMap(), OUT_OF_CODE_BLOCK_MODIFICATION_COUNT, myTracker);
                 }
               })
           .get(name);
   return methods == null ? PsiMethod.EMPTY_ARRAY : methods.clone();
 }
Example #2
0
 @NotNull
 @Override
 public PsiMethod[] findMethodsByName(@NonNls String name, boolean checkBases) {
   return PsiClassImplUtil.findMethodsByName(this, name, checkBases);
 }