private static boolean requiresSpecifiedActionPlace(@NotNull PsiMethod method) {
    PsiClass aClass = method.getContainingClass();
    if (aClass != null && ActionManager.class.getName().equals(aClass.getQualifiedName())) {
      PsiParameter[] parameters = method.getParameterList().getParameters();
      if (parameters.length > 0 && parameters[0].getType() instanceof PsiClassType) {
        PsiType type = parameters[0].getType();
        //first check doesn't require resolve
        if (Objects.equals(((PsiClassType)type).getClassName(), CommonClassNames.JAVA_LANG_STRING_SHORT)
            && CommonClassNames.JAVA_LANG_STRING.equals(type.getCanonicalText(false))) {
          return true;
        }
      }
    }
    return false;
  }
private static boolean requiresSpecifiedActionPlace(@NotNull PsiMethod method)