private boolean isReplaceSupported() {
    if (myReplaceSupported != null) return myReplaceSupported;
    Class<?> declaringClass = ReflectionUtil.getMethodDeclaringClass(getClass(), "getReplaceHandler", Project.class, ReplaceOptions.class);
    return myReplaceSupported = !StructuralSearchProfile.class.equals(declaringClass);
  }
private boolean isReplaceSupported()